<?php
return array(
		
		'controllers' => array(
			'invokables' => array(
				// 		'Chat\Controller\Chat' => 'Chat\Controller\ChatController',
			),
				'factories' => array(
						'Chat\Controller\Chat' =>'Chat\Controller\ChatControllerFactory'
			)
		),
		'router' => array(
				'routes' => array(
						'Chat' => array(
								'type' => 'segment',
								'options' => array(
										// Change this to something specific to your module
										'route' => '/chat[/:action][/:id]',
										'constraints' => array(
												'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
												'id' => '[0-9]+',
										),
										'defaults' => array(
												// Change this value to reflect the namespace in which
												// the controllers for your module are found
												//'__NAMESPACE__' => 'TestAjax\Controller',
												'controller' => 'Chat\Controller\Chat',
												'action' => 'index',
										),
								),
								'may_terminate' => true,
								'child_routes' => array(
										// This route is a sane default when developing a module;
										// as you solidify the routes for your module, however,
										// you may want to remove it and replace it with more
										// specific routes.
		
										'default' => array(
												'type' => 'Segment',
												'options' => array(
														'route' => '/[:controller[/:action]]',
														'constraints' => array(
																'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
																'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
														),
														'defaults' => array(
														),
												),
										),
		
								),
						),
				),
		),
		
		
		'service_manager' => array(
				
				'invokables' => array(
						'cs' => 'Chat\Service\ChatService'
				),
				'factories' => array(
						'chatService' => 'Chat\Service\ChatServiceFactory'
						)
		),
	
		'view_manager' => array(
				'template_map' => array(
				'Helper/menu' => __DIR__ .  '/../View/Helper/menu.phtml',
				),
				'template_path_stack' => array(
						__DIR__ . '/../view'
				)
				),
		'view_helpers' => array(
				'invokables' => array(
						'chatHelper' => 'Chat\View\Helper\ChatHelper',
						'ChatCSSHelper' => 'Chat\View\Helper\ChatCSSHelper',
						'ChatJSHelper' => 'Chat\View\Helper\ChatJSHelper',
				)
		),
		
		'navigation' => array(
				'default' => array(
						'Chat' => array(
								'label' => 'Chat',
								'route' => 'Chat',
						),
				),
		),
		
);